<?php
    
  
  
  $where = "[php_property:where]";
  // Umwandlung (z.B. für id<>0)
  $where                    =str_replace("&lt;", "<", $where);
  $where                    =str_replace("&gt;", ">", $where);

  $limit = "[php_property:limit]";
  
  
  // falls paging
if ("[php_property:paging]" !== "")
    {
    $pagingStart=0;
    $table      ="[php_property:table]";
    //$table = general::stringToArray($table);

    //if (isset($_REQUEST[$table[$0] . "_start"])) --> problem mit replace field
    if (isset($_REQUEST[$table . "_start"]))
        $pagingStart=$_REQUEST[$table . "_start"];

    $limit="$pagingStart,[php_property:paging]";

    /*     // $limit = "{\$_REQUEST[$table.'_start']},".$e->paging;
            
             /*  $limit=0;if (isset($_REQUEST[$table.'_start'])) $limit=$_REQUEST[$table.'_start'];
               $limit=$limit.",".$e->paging;          
                         
               $limit = "if (isset($_REQUEST[page_start]) )"$e->limit;
                   $limit = codeReplaceParameterVariable($limit);  */                   
                   
 }
  
  
  
  
  $additionalField="[php_property:additional_field]";    
  $sqlField ="[php_property:sql_field]";        
  
  // Zähler für data_counter und data_counter2
  $dataCounter = 0;
  $dataCounter2 = 0;
  
  //$query_[query_counter] = data::getTable("[php_property:table]", $where, "[php_property:orderby]", $limit, "[php_property:join]", $additionalField, $sqlField);
  
  $query_[query_counter] = new data();
  $query_[query_counter]->table = "[php_property:table]";
  $query_[query_counter]->where = $where;
  $query_[query_counter]->orderby = "[php_property:orderby]";
  $query_[query_counter]->limit = $limit;
  $query_[query_counter]->search = "[php_property:search]";
  

  
  foreach ($query_[query_counter]->getData() as $[query_var]) {
      if (($dataCounter2 % 2) == 0)
        $dataCounter2 = 0;
        
     $dataCounter++;
     $dataCounter2++;
      
      
      
?>